[AI] SISC2-36 [FEAT] 최종 리포트 저장 구현#69
Merged
Conversation
|
Caution Review failedThe pull request is closed. 개요이 PR은 데이터 파이프라인을 재구조화하며, Transformer 용어로 API를 통일하고, 데이터베이스 연결을 추상화하고, XAI 보고서 저장 기능을 추가합니다. 또한 새로운 특성 공학 유틸리티를 포함한 Transformer 구현을 복원합니다. 변경사항
시퀀스 다이어그램sequenceDiagram
participant Pipeline as Pipeline Orchestrator
participant Config as Config Manager
participant Finder as Weekly Finder
participant Transformer as Signal Transformer
participant DBUtil as DB Connection Utility
participant ReportDB as Report Database
Pipeline->>Config: config.json 로드
Config-->>Pipeline: 구성 객체 반환
Pipeline->>Finder: run_weekly_finder() 호출
Finder-->>Pipeline: finder_df 반환
Pipeline->>DBUtil: get_db_conn(config["db"]) 호출
DBUtil->>DBUtil: psycopg2 연결 생성
DBUtil-->>Pipeline: DB 연결 반환
Pipeline->>Finder: fetch_ohlcv(ticker, db_config) 호출
Finder->>Finder: 조회 데이터 가져오기
Finder-->>Pipeline: 원본 OHLCV 데이터 반환
Pipeline->>Transformer: run_signal_transformer() 호출
Transformer->>Transformer: 특성 공학 (EMA, RSI, MACD, ATR 등)
Transformer->>Transformer: 시퀀스 생성 및 스케일링
Transformer->>Transformer: 모델 로드/구축 및 추론
Transformer-->>Pipeline: 예측 결과 및 XAI 로그 반환
Pipeline->>DBUtil: get_db_conn(config["report_DB"]) 호출
DBUtil-->>Pipeline: Report DB 연결 반환
Pipeline->>ReportDB: save_reports_to_db(reports, config)
ReportDB->>ReportDB: 각 보고서를 타임스탬프와 함께 삽입
ReportDB-->>Pipeline: 저장 완료
코드 리뷰 예상 난도🎯 3 (중간) | ⏱️ ~25분 추가 검토 필요 영역:
관련 가능성 있는 PR
추천 검토자
시
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Nov 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
용어 일관성 수정 및 불필요한 파일 삭제 (transform이 아니라 transformer 임.)
pipeline config dict로 타입 변경
transformer/models에 서브패키지 작성
경제지표 계산정의 수정(obv,mfi)
리포트 db 키 컨피그 작성
불필요한 utils/data 삭제, fetch_ohlcv는 utils 직속으로 옮김.
get_db_conn 구현
pipeline.py에 생성된 리포트 report_db에 저장 구현
Summary by CodeRabbit
릴리스 노트
New Features
Refactor